modified comparing constants