added figure script