changed constants for detectSelect.