add script for transitions