prevent errors when functions dont return a value but call a function