switching from length to limit for sex to resolve #4