returned var functionality