input working