added some local stuff I used to make figures