moved some functions around
fix broken build for using unititialized const float