updated create method