completes the square