move functions to others.cpp