got rid of noise min and max functions