cleans function and style code