added methods and corected == operator parsing