reducing input size