modified script for new instance