fixed typo
added recursive statement