fixing functions modifier