found subtracting while statement