added back in error
just threw in some ifs in case of no prof pic
commented and properly indented code