update script to handle price