update size and input functions