fix requirement check