changed the bad practises