added result for console log and it worked