correct the front side check function.