decreasing layers count