This was actually right, just confusingly written