added both which checks if two variables are set