implemented the things declared in init.hpp