adjusted code formatting to fit in better