added functions related to permission