Update basic_functions.hpp