improved the names of some variables. Couldn't sleep with single letters on my mind :)