some flash optimiziation