fixed the formating of funtions