Working without returning the invited array