changed some formatting and fixed an error