trying to fix problem with (length foo) returning 0