simplifying logic;