added create method for API