adding general public function file with msgbox