only allow certain types to go through