add pretty function