changed compass method