flash working correctly