buggy first version, produces some kind of mesh