replace all magic numbers (2,1,4) by const variables with clear names.