changed check_register