fixed recursion, pre-realize version :)