finding x correctly