use splitAt as take/drop