improving duration and param getting