formatting some code to wikia standards