add check in function to running page