added warning for non-dividing input lengths