changes to figure making script