made bits parameterizable