improved sub layer handling and list length