value must be changed to ptr