update hardcheck function