added duration option for effects