optimized input