added check for user capability