figures scripts improved