added wantarray method