fixing protect method