check function added