changing logic admin