fixed bordercheck