updated to get Input