edited functions in questions.m