changed 'anchor' option to be 'edge'