adds answers to prepend and curtail functions