expand checks as instructed in hw3