removed more unnecessary recursive calls