added the Chech Out function