move things to function and add creator id