implemented binazy serializer