modify the add requirement method