added some things on restricted functions