again, i made the code slightly more appealing.