change made : use get() array method to extract given kwargs or set it to default value