added polygon stuff