changes made to help in validation of requests