trying to get pellet/boundary logilogic to work