tidy up magic number definition