whoops two function nests