check() needs to edited