simpler approach