trying to get guard working properly