even simpler and better solution