implements getHeight