[F] implemented variant 2