changed name of method for calculating water flow