got input working still ugly as all sin