parenet dup check fix, template styling