wrote in new and create methods