create initialize method for params