refactor ...gpml.element to self-executing function form
debug double lines for shapes