better solution
one more:)