check in main code