fix max min and st dev