fixed linear searching in case of collision