code beautyfied. Ba da Bumm.