marshal attribute properly