added inline to BasicFunctions.h