add lengths as constants as they will be used by perl code