added duration to CreateText