added request code check