removed margin in EventParser to correct a bug where snap did not work properly