changed overlap fct and added matrix for all objects