should solve problem with profile matrix