issue due to recent refactoring
fixing nested dependent scaling
fixing dependent scaling to take decision based on max