Using value.only in other functions