modify bg prediction scripts