flex in and out