added scan to check_assignments