refactoring - add view param to deserialize funct
finished