make [] method in router more readable