refactor code of serializers