fixes sloppy code