trying a different way of checking if master