naive solution works now