fixd a crasing error, and some formatting! :)