add function takeWhile