check for too many layers