move functions from header to source-file