temporary helper function isitperm