matrix have to define objects count