refactor CHECKS