What are two factors that can affect salinity