update filename and function return