fixing calc input