Updated with pipe function-Kane(not working)