layers: prefer using instead of typedef