added method to manually update input state