code is drastically simpler