fixed uninitialized constant error, reformatted