add functions for version
code cleanup