added inCheck method