input and partition should work