added new methods for collision handling