updated RC input function
More testing