updated create method with return type long