continued implementing check_all function