plots implementation