added more comparison operators. temp variable reusability still left