remove bad coding practices