added dots and collision