updated checking method