changed to bad coding practices