fixing @can_edit