use array instead of string as return value