change user type detection