improved to use more then 2 series