nasty nested functions and shit to display all letters