added geometry thing from as1