added case for all lengths