update raw function added and functional test added