rearranged functions, now there are no more warnings about undefined functions upon loading the program