initial try of reduce property but not working