clean code, char resize