moved mini profile string generation to it's own function