edited all functions in ctrl to be .