hopefully got input working