formatting changes and made method static