remove unused functions, fix create date bug