added dynamic plot