add check to add add exercise for null