changed the skeleton in decoder a bit, started working on the collapse function