added trail mode