returning array instead of string