updated old script