messy code formatted properly.