add another loop for multiple requires to check them one by one