refactoring serializers