first version without testing recursivity..