remove createdAt and do on front end