fix bad practice