merged with amy's and chingchong linglongbingbong
debug the text input
fixed merge conflicts