fixed min length attempt 2