hand input optimized, indexes added