if condition for role added