refactored arc plot and put back together in seperated files