add create function to history