please replace these magic numbers by an enum. then you can also drop the comments