added "enum class layer_type" to types