simplifying it & commenting it a bit more