fixed functions.hpp