reducing legacy input size