square error

trying to pass amount to square