change in decode function