enhancing layer generation