made some functions easier