merged create method into save method