fixing issue that always returned strings