generalize script and add printout
remove ambigious geom