added retstmt in nested while