checking

added function checking