make code more readable by extracting magic numbers fix interface range

Original commit message from CVS:
make code more readable by extracting magic numbers
fix interface range
1 file changed