naive solution